package aapilast3;

import java.lang.reflect.Method;
import aapilast3.anno.AutoRunMethod1;


public class ReflectDemo10 {
    public static void main(String[] args)throws Exception {
        Class<?> cls = Class.forName("aapilast3.Person");
        Method method = cls.getMethod("sayHello");
        System.out.println(
                method.isAnnotationPresent(AutoRunMethod1.class)
        );
    }
}
